<?php 
/**
 * ReadPress是一个优秀的主题，回归纯粹的博客，文艺、阅读、写作、摄影、展示wordpress主题
 * Gitee：https://gitee.com/MUCEO/readpress/
 * 作者唯一QQ：858896214 （秋知德雨）
 * QQ交流群：917367358
 * 开发者不易，感谢支持，如果使用本主题尽量留个版权或者链接
 */
?>
<?php get_header();?>
		<div class="layui-content">
			<div class="layui-container  text-rp-content">
				<div class="layui-row main">
					<div class="layui-col-md12 layui-col-lg12">
						<div class="list-box-blog">
						    <div class="search-suoyin">检索到包含 <?php  wp_title('') ?> 标签的文章</div>
						    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>      
							<div class="list-cards-blog layui-anim layui-anim-downbit border-r">
								<div class="post-graphic">
									<div class="item-thumbnail"><a href="<?php the_permalink();?>" alt="<?php the_title(); ?>"><img
												src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=300&h=240&zc=1"
												data-src="" title="<?php the_title(); ?>" class="border-r"></a></div>
								</div>
								<div class="item-body">
									<div class="blog-article-component">
										<div class="meta-right">
											<span class=""><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?></span>
											<span> · </span>
											<span class=""><?php the_time('Y年n月j日'); ?></span>
										</div>
									</div>
									<h2 class="item-heading" title="<?php the_title(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
									<div class="text-ellipsis"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></div>
								</div>
							</div>
 <?php endwhile; else: ?>
          <div class="qzdy_ssnrts"><h2 style=" text-align: center; margin: 0 auto; padding: 60px; ">暂无文章哦！</h2></div>
                <?php endif; ?>
					</div>
				</div>
				</div>
				</div>
            <div class="pagination" id="pagenavi">
            <p><?php lingfeng_pagenavi();?></p>
           </div>
				</div>
				<?php get_footer();?>